<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<jsp:include page="../header.jsp" />

<style>
th {
	min-width: 12%;
	max-width: 12%;
}

td {
	text-align: center;
}
</style>



<table border="1">
	<tr>
		<th>Email</th>
		<th>Imię</th>
		<th>Nazwisko</th>
		<th>Data Urodzenia</th>
		<th>Płeć</th>
		<th>Profil</th>
	</tr>
	<c:forEach var="user" items="${listOfFoundPersons}">
		<tr>
			<td>${user.getEmail()}</td>
			<td>${user.getName()}</td>
			<td>${user.getSurname()}</td>
			<td>${user.getBirthdateString()}</td>
			<td>${user.getSex()}</td>
			<td><a href="profile.html?id=${user.getAccountID()}">Pokaż</a></td>
		</tr>
	</c:forEach>
</table>




<jsp:include page="../footer.jsp" />